﻿using System;
using System.ComponentModel.DataAnnotations;

namespace GameSchoolApplication.Models
{
	public class Announcement
	{
		[Key]
		public int		Id			{ get; set; }
        [Display(Name = "Skilaboð")]
		public string	Content		{ get; set; }
        [Display(Name = "Leikur")]
		public int		GameId		{ get; set; }
        [Display(Name = "Dagsetning")]
		public DateTime DateTime	{ get; set; }

		[ForeignKey("GameId")]
		public virtual Game Game { get; set; }
	}

	public class Notification
	{
		[Key]
		public int		Id		 { get; set; }
		public int		GameId	 { get; set; }
		public string	GameName { get; set; }
		public string	Url		 { get; set; }
		public DateTime DateTime { get; set; }

		[ForeignKey("GameId")]
		public virtual Game Game { get; set; }
	}
}